package FirstStage.DuoTai;

public class Empolyee {
    private  String name;
    private  double salary;

    public Empolyee(String name, double salary) {
        this.name = name;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public double getSalary() {
        return salary;
    }

    // 得到年工资的方法
    public double getAnnual(){
        return 12 * salary;
    }
}
